use std::{fs, io::Write};

fn main() {
    println!("Hello, world!");
    let mut buf = Vec::new();
    buf.resize(1024*1024*1024*4, 0xA5);

    println!("Size: {}", buf.len());
    let mut big_file = fs::File::create("bigfile").unwrap();

    let wr = big_file.write(&buf);
    match wr {
        Ok(_o) => {println!("Write: {}", _o);},
        Err(_e) => {println!("Error: {}", _e);}
    }
    // for i in 0..1024*5 {
    //     big_file.write(&buf).unwrap();
    // }
}
